<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
				"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html">
    
<body>
    <div id="topmenu">
        <h:form>
            <table class="topmenu" width="100%">
                <tr>
                    <td><span id="h"><h:commandLink value="Home" action="HighLight" styleClass="navlink"></h:commandLink></span></td>
                    <td><span id="s"><h:commandLink value="Search" action="SearchProperty" styleClass="navlink"></h:commandLink></span></td>
                    <td><span id="a"><h:commandLink value="Create Account" action="CreateAccount" styleClass="navlink"></h:commandLink></span></td>
                    <td><span id="i"><h:commandLink value="Sign In" action="SignIn" styleClass="navlink"></h:commandLink></span></td>
                    <td><span id="u"><h:commandLink value="Upload Property" action="UploadProperty" styleClass="navlink"></h:commandLink></span></td>
                    <td><span id="c"><h:commandLink value="Cart" action="UserCart" styleClass="navlink"></h:commandLink></span></td>
                </tr>
            </table>
        </h:form>
    </div>
    
    <script type="text/javascript">
            if (#{farmUserController.signedIn} === true)
            {
                document.getElementById("a").style.display = "none";    
                document.getElementById("i").style.display = "none";                
            }
            else
            {
                document.getElementById("u").style.display = "none";
                document.getElementById("c").style.display = "none";
            }
    </script>
    
</body>
    
</html>